<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Kaptcha</title>
<script type="text/javascript">
	function changeR(node){
		// 用于点击时产生不同的验证码
		node.src = "kaptcha.jpg?time="+new Date().getTime();	
	}
</script>
</head>
<body>
<!--img标签的src是Servlet,该Servlet由jar包提供-->
<img alt="kaptcha" src="kaptcha.jpg" onclick="changeR(this)" style="cursor: pointer;">
	<form action="Submitk">
		<input type="text" name="kaptcha">
		<input type="submit">
	</form>	
</body>
</html>